package com.hava.demo.springmvc.one.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by zhanpeng on 15-1-19.
 */

@Controller
@RequestMapping(value = "/helloworld")
public class HelloWorldController {

    @RequestMapping(method = RequestMethod.GET)
    public String login() {
        System.out.println("Hello World.");
        return "/helloworld";
    }
}